This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Hank Chufreeman 28.Sep.03 10:45 PM a Web browser Applications Development6.0.2 CF2All Platforms
I'm new to the C API arena, but I need to figure out how to do the following using the C API: I have a rich text item (gotten via NSFItemInfo), and now I want to identify any/all file attachments and replace them with a text message at the point in the rich text where the file attachment was added.
I was thinking of using NSFNoteExtractWithCallback, that would get me a callback for each $FILE in the note, but from what I read, it doesn't give you anything into the rich text field where I need to place my message.
I am now looking at EnumCompositeBuffer, which provides a callback for each CDRecord of a RichText field. One question on this is whether the callback function will be called in the order the CDRecords appear in the RichText Field? Can I depend on that order?
If Not, is there some other way to link the File attachments to their position in the RichText files?
I need to place my message where the File attachment icon is, not appended to the end of the field.
Using EnumCompositeBuffer, I'm assuming that I should key on SIG_CD_FILEHEADER and subsequent FILESEGMENT records. Is that rigth?